package leetcode.code0394;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution394 implements IDebug {

	public abstract String decodeString(String s);

	@Override
	public void debug1() {
		String s = "3[a]2[bc]";
		String r = this.decodeString(s);
		String e = "aaabcbc";
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String s = "3[a2[c]]";
		String r = this.decodeString(s);
		String e = "accaccacc";
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		String s = "2[abc]3[cd]ef";
		String r = this.decodeString(s);
		String e = "abcabccdcdcdef";
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		String s = "abc3[cd]xyz";
		String r = this.decodeString(s);
		String e = "abccdcdcdxyz";
		HelpDebug.compare(e, r);
	}
	public void debug5() {
		String s = "100[leetcode]";
		String r = this.decodeString(s);
		String e = "leetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcodeleetcode";
		HelpDebug.compare(e, r);
	}

}
